<template>
  <div>
    标题:<a-input style="width: 300px" v-model:value="question['text']"></a-input>
    说明题编辑：
  </div>
</template>

<script setup>
import {defineProps} from 'vue';
import {useQuestions} from "@/utils/paper.js";
const { getQuestionById } = useQuestions()
const props = defineProps({
  questionId:{
    type: String
  }
});
const questionId=props.questionId;// 该题的id
const question=getQuestionById(questionId) ;// 根据Id查询题目——为啥这玩意是双向绑定的？


</script>
